<template>
  <div class="profile-container">
    <el-card class="profile-card" shadow="hover">
      <div slot="header" class="profile-header">
        <h2>个人简介</h2>
      </div>
      <el-row>
        <el-col :span="8">
          <img :src="profile.image" alt="Profile Picture" class="profile-image" />
        </el-col>
        <el-col :span="16">
          <div class="profile-details">
            <h3>{{ profile.name }}</h3>
            <p><strong>职位：</strong>{{ profile.position }}</p>
            <p><strong>公司：</strong>{{ profile.company }}</p>
            <p><strong>邮箱：</strong>{{ profile.email }}</p>
            <p><strong>简介：</strong>{{ profile.bio }}</p>
          </div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      profile: {
        image: 'https://via.placeholder.com/150', // 个人照片链接
        name: '张三',
        position: '高级开发工程师',
        company: '公司 A',
        email: 'zhangsan@example.com',
        bio: '张三拥有多年的开发经验，擅长前端和后端技术，致力于构建高效、可维护的代码。'
      }
    };
  }
};
</script>

<style scoped>
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background: #f5f5f5;
}

.profile-card {
  width: 600px;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.profile-header {
  text-align: center;
  margin-bottom: 20px;
}

.profile-header h2 {
  margin: 0;
  color: #333;
}

.profile-details {
  padding: 20px;
}

.profile-image {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 20px;
}

.profile-details h3 {
  margin-top: 0;
  color: #333;
}

.profile-details p {
  margin: 10px 0;
}
</style>
